import store from '@/store'
const permissionMixin = {
  methods: {
    // 传入key,权限点的名字=point
    checkPermission(key) {
     return store.state.user?.userInfo?.roles?.points?.includes(key)
    }
  }
}
export default {
    install(Vue){
        Vue.mixin(permissionMixin)
    }
}
